//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2007 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CATEGORY_ITEM_LINE
// AUTHOR           :   Ray Guo 
// DATE CREATE      :   2007/05/24
// DESCRIPTION      :   a ROW file for the function, CATEGORY_ITEM_LINE
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2007/05/24   Ray Guo         1.0                 source is generated.
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.erp.app.catalog.login.web;

import com.erp.framework.controller.form.MultiRowTemplate;
import com.erp.framework.util.CommonUtil;
import com.erp.framework.types.*;
import com.erp.app.catalogLogin.pk.*;

/**
* <p>A <strong>Row</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the detail childs.
*
* @author          Ray Guo 
* @version 1.0     2007/05/24
* @since           FrameWork 1.0
*
*/
public class CategoryItemCategoryRow extends MultiRowTemplate {

	//DB Table Name: T_CATEGORY_ITEM_CATEGORY

	//PK Attributes
	private String companyCode = "";                                                                   //DB Column Name: COMPANY_CODE
	private String itemLine = "";                                                                      //DB Column Name: ITEM_LINE
	private String itemCategory = "";                                                                  //DB Column Name: ITEM_CATEGORY

	//Other Attributes
	private String categoryItemCategoryDesc = "";                                                      //DB Column Name: ITEM_CATEGORY_DESC
	private String categoryStatus = "";                                                                //DB Column Name: STATUS
	private String categoryDcInd = "";                                                                 //DB Column Name: DC_IND
	private String categoryDcDate = "";                                                                //DB Column Name: DC_DATE
	private String createUser = "";                                                                    //DB Column Name: CREATE_USER
	private String createDate = "";                                                                    //DB Column Name: CREATE_DATE
	private String updateUser = "";                                                                    //DB Column Name: UPDATE_USER
	private String updateDate = "";                                                                    //DB Column Name: UPDATE_DATE
	private String categoryShowInCatalog = "";                                                         //DB Column Name: SHOW_IN_CATALOG

	private String expandStatus = "";

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Ray Guo 
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, itemLine = " + this.itemLine
			+ "\n, itemCategory = " + this.itemCategory + "}\n";
		String colStr = "COL: {categoryItemCategoryDesc = " + this.categoryItemCategoryDesc
			+ "\n, categoryStatus = " + this.categoryStatus
			+ "\n, categoryDcInd = " + this.categoryDcInd
			+ "\n, categoryDcDate = " + this.categoryDcDate
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate
			+ "\n, categoryShowInCatalog = " + this.categoryShowInCatalog + "}\n";
		return "CategoryItemCategoryRow.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getItemLine() {
		return this.itemLine;
	}

	public String getItemCategory() {
		return this.itemCategory;
	}

	public String getCategoryItemCategoryDesc() {
		return this.categoryItemCategoryDesc;
	}

	public String getCategoryStatus() {
		return this.categoryStatus;
	}

	public String getCategoryDcInd() {
		return this.categoryDcInd;
	}

	public String getCategoryDcDate() {
		return this.categoryDcDate;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public String getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public String getCategoryShowInCatalog() {
		return this.categoryShowInCatalog;
	}
	public String getExpandStatus(){
		return this.expandStatus;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = CommonUtil.toCode(companyCode);
	}

	public void setItemLine(String itemLine) {
		this.itemLine = CommonUtil.toCode(itemLine);
	}

	public void setItemCategory(String itemCategory) {
		this.itemCategory = CommonUtil.toCode(itemCategory);
	}

	public void setCategoryItemCategoryDesc(String categoryItemCategoryDesc) {
		this.categoryItemCategoryDesc = CommonUtil.trim(categoryItemCategoryDesc);
	}

	public void setCategoryStatus(String categoryStatus) {
		this.categoryStatus = CommonUtil.trim(categoryStatus);
	}

	public void setCategoryDcInd(String categoryDcInd) {
		this.categoryDcInd = CommonUtil.trim(categoryDcInd);
	}

	public void setCategoryDcDate(String categoryDcDate) {
		this.categoryDcDate = CommonUtil.trim(categoryDcDate);
	}

	public void setCreateUser(String createUser) {
		this.createUser = CommonUtil.trim(createUser);
	}

	public void setCreateDate(String createDate) {
		this.createDate = CommonUtil.trim(createDate);
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = CommonUtil.trim(updateUser);
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = CommonUtil.trim(updateDate);
	}

	public void setCategoryShowInCatalog(String categoryShowInCatalog) {
		this.categoryShowInCatalog = CommonUtil.trim(categoryShowInCatalog);
	}
	public void setExpandStatus(String expandStatus){
		this.expandStatus = expandStatus;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


	public CategoryItemCategoryPk getPk() {
		return new CategoryItemCategoryPk(String.valueOf(this.getCompanyCode()), String.valueOf(this.getItemLine()), String.valueOf(this.getItemCategory()));
	}
}
